from django.shortcuts import render,HttpResponse
from .models import Grades,Students

# Create your views here.
from django.http import  HttpResponse
from  django.shortcuts import render

def index(request):
    return HttpResponse('20级大数据一班')

def showgrade(request):
    grades = Grades.objects.all()
    return render(request,'grade.html',{'params':grades})

def addgrade(request):
    return HttpResponse('success addgrade')
